package com.Generics.bean.ch02;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

/**
 * @author nmm
 * @date 2024-03-2024/3/29
 * @deriction njm......
 */
public class Nmmhu <A,B,C>{

    private String name;

    private  int age;

    private  String sex;

    private A a;

    private  B b;

    private C c;


    public Nmmhu(A a, B b, C c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }


    /**
     * @desc:用于打印实例化后的具体泛型的类名和值
     */
    public void GetInfo() {
        System.out.println(a.getClass().getTypeName()+" "+"value:"+a);
        System.out.println(b.getClass().getTypeName()+" "+"value:"+b);
        System.out.println(c.getClass().getTypeName()+" "+"value:"+c);
    }

}